import axios from '@/common/js/request.js';

export default {
	/**
	 * 查询预检检列表
	 */
	qualityList(params) {
		return axios.post(global.$host, 'api/v1/qualityOrder/list', params);
	},
	/**
	 * 查询质检列表
	 */
	testingList(params) {
		return axios.post(global.$host, 'api/v1/qualityOrder/testingList', params);
	},
	/**
	 * 根据id查询质检单
	 */
	queryQualityById(id) {
		return axios.post(global.$host, `api/v1/quality/queryQualityById?id=${id}`);
	},
	/**
	 * 质检货品
	 */
	updateQualityCargo(params) {
		return axios.post(global.$host, 'api/v1/quality/updateQualityCargo', params);
	}
};
